/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mabi.frontend.mock;

import com.mabi.modular.runtime.module.contributions.views.View;
import com.vaadin.ui.Component;

/**
 *
 * @author Justo Disla
 */
public class PaneViewFactory {
    public static View createPaneView(String caption, String description, Component comp){
        View paneView = new View();
        paneView.setCaption(caption);
        paneView.setDescription(description);
        paneView.addComponent(comp);
        return paneView;
    }
}
